home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_07_1985_Transactor_Publishing.d64
/
hires text
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
794b
|
34 lines
0 rem the transactor volume 6 issue 02 bits & pieces section
5 rem save"@0:hires text",8
7 rem* text on hi-res screen *
8 rem* subroutine at 1000 *
10 clr:f=fre(0):dima((-65536*(f<0)+f)/5-10):clr
12 input"string to print";m$
15 print"[147]";
20 poke53265,peek(53265)or32
25 poke53272,peek(53272)or8
30 cx=10:cy=10
40 gosub2000 'print string "m$"
50 geta$:ifa$=""goto50
60 poke53265,27:poke53272,23
80 end
100 :
110 :
1000 rem* put text on hi-res screen *
1005 rom=13*4096+1024*(peek(53272)and2)
1010 c=asc(cc$): print"[147]";
1020 cc=c+64*(c>64andc<192)+128*(c>191)
1050 poke56334,peek(56334)and254
1060 poke1,peek(1)and251
1070 br=rom+cc*8:bs=8192+cy*320+cx*8
1080 for i=br to br+7:poke bs,peek(i)
1090 bs=bs+1:next
1100 poke1,peek(1)or4
1110 poke56334,peek(56334)or1
1120 return
1130 :
2000 rem print string to hi-res screen
2010 for j=1 to len(m$):cc$=mid$(m$,j,1)
2020 gosub1000 'char on hi-res screen
2030 cx=cx+1:next: return